package statusModel;

public class MorningState extends State {
    @Override
    public void WriteProgroam(Work w) {
        if (w.getHour() < 10) {
            System.out.println("现在是早上" + w.getHour() + "点");
        } else {
            w.setCurrent(new ForenoonState());
            w.WriteProgram();
        }
    }
}
